package com.itheima.day815.demo;

public class Father {
    String name;
    int age;
    public void eat(){
        System.out.println("吃饭");
    }
    public void sleep(){
        System.out.println("睡觉");
    }

}
class Demo{
    public static void main(String[] args) {
        Son1 s = new Son1();
        s.eat();
        s.sleep();
        s.coding();
        Son2 s2 = new Son2();
        s2.eat();
        s2.sleep();
        s2.play();
    }
}
